import './assets/main.css'

import { createApp } from 'vue'

// element-plus 和 el-icon 和 echarts 和 SVG
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'virtual:svg-icons-register'

import App from './App.vue'
import router from './router/index'
import pinia from './store'

const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

// 使用pinia 和 element plus
app.use(ElementPlus)
.use(pinia)
.use(router)

app.mount('#app')
